package cn.itcast.usermanage.service;

import java.util.List;

import cn.itcast.usermanage.pojo.EasyUIResult;
import cn.itcast.usermanage.pojo.User;

public interface UserService {


	/**
	 * 分页获取用户信息
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	public EasyUIResult queryEasyUIResult(Integer pageNum,Integer pageSize);
	
	/**
	 * 测试事务
	 * @param user1
	 * @param user2
	 */
	public void addUser(User user1,User user2);

	public Boolean insertUser(User user);

	public boolean deleteUser(String[] ids);

	boolean deleteUser(List<Object> ids);

	public User queryUserById(Long id);

	public Boolean updateUser(User user);
}
